package cn.jasonone.bbs.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.jasonone.bbs.bean.Hot;
import cn.jasonone.bbs.mapper.HotMapper;
import cn.jasonone.bbs.service.HotService;

@Service("hotService")
public class HotServiceImpl implements HotService {
	@Resource
	private HotMapper hotMapper;

	@Override
	public List<Hot> findAll(Hot t) {
		return hotMapper.findAll(t);
	}

	@Override
	public Hot findByID(Long id) {
		return hotMapper.findByID(id);
	}

	@Override
	public boolean insert(Hot t) {
		// TODO Auto-generated method stub
		return hotMapper.insert(t) > 0;
	}

	@Override
	public boolean update(Hot t) {
		return hotMapper.update(t) > 0;
	}

	@Override
	public boolean delete(Hot t) {
		return hotMapper.delete(t) > 0;
	}

}
